package com.mzhmxh.service.impl;

import com.mzhmxh.mapper.UserPhotoDao;
import com.mzhmxh.pojo.UserPhoto;
import com.mzhmxh.service.UserPhotoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author LiJinCheng
 * @Date 2020/7/14 3:46 下午
 * @Version 1.0
 * @package com.mzhmxh.service.impl
 **/
@Service
@Transactional
public class UserPhotoServiceImpl implements UserPhotoService {
    @Autowired
    private UserPhotoDao photoDao;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return photoDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserPhoto record) {
        return photoDao.insert(record);
    }

    @Override
    public int insertSelective(UserPhoto record) {
        return photoDao.insertSelective(record);
    }

    @Override
    public UserPhoto selectByPrimaryKey(Integer id) {
        return photoDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserPhoto record) {
        return photoDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserPhoto record) {
        return photoDao.updateByPrimaryKey(record);
    }
}
